package com.xrf;

public class WorkExperience {
    private String workUnitOfApplicant;
    private Long dateCommenced;
    private Double applicantDepartment;
    private String nameOfWitness;
    private Double professionalJobDescription;
    private Double applicantUnitAddress;
    private String deadline;
    private Long positionProfessionalTitle;
    private String witnessContactPhoneNumber;

    public WorkExperience() {}

    public WorkExperience(String workUnitOfApplicant, Long dateCommenced,
                         Double applicantDepartment, String nameOfWitness,
                         Double professionalJobDescription, Double applicantUnitAddress,
                         String deadline, Long positionProfessionalTitle,
                         String witnessContactPhoneNumber) {
        this.workUnitOfApplicant = workUnitOfApplicant;
        this.dateCommenced = dateCommenced;
        this.applicantDepartment = applicantDepartment;
        this.nameOfWitness = nameOfWitness;
        this.professionalJobDescription = professionalJobDescription;
        this.applicantUnitAddress = applicantUnitAddress;
        this.deadline = deadline;
        this.positionProfessionalTitle = positionProfessionalTitle;
        this.witnessContactPhoneNumber = witnessContactPhoneNumber;
    }

    // Getter and Setter methods
    public String getWorkUnitOfApplicant() { return workUnitOfApplicant; }
    public void setWorkUnitOfApplicant(String workUnitOfApplicant) { this.workUnitOfApplicant = workUnitOfApplicant; }
    public Long getDateCommenced() { return dateCommenced; }
    public void setDateCommenced(Long dateCommenced) { this.dateCommenced = dateCommenced; }
    public Double getApplicantDepartment() { return applicantDepartment; }
    public void setApplicantDepartment(Double applicantDepartment) { this.applicantDepartment = applicantDepartment; }
    public String getNameOfWitness() { return nameOfWitness; }
    public void setNameOfWitness(String nameOfWitness) { this.nameOfWitness = nameOfWitness; }
    public Double getProfessionalJobDescription() { return professionalJobDescription; }
    public void setProfessionalJobDescription(Double professionalJobDescription) { this.professionalJobDescription = professionalJobDescription; }
    public Double getApplicantUnitAddress() { return applicantUnitAddress; }
    public void setApplicantUnitAddress(Double applicantUnitAddress) { this.applicantUnitAddress = applicantUnitAddress; }
    public String getDeadline() { return deadline; }
    public void setDeadline(String deadline) { this.deadline = deadline; }
    public Long getPositionProfessionalTitle() { return positionProfessionalTitle; }
    public void setPositionProfessionalTitle(Long positionProfessionalTitle) { this.positionProfessionalTitle = positionProfessionalTitle; }
    public String getWitnessContactPhoneNumber() { return witnessContactPhoneNumber; }
    public void setWitnessContactPhoneNumber(String witnessContactPhoneNumber) { this.witnessContactPhoneNumber = witnessContactPhoneNumber; }

    @Override
    public String toString() {
        StringBuilder builder = new StringBuilder();
        builder.append("申请人工作单位:").append(workUnitOfApplicant).append("\t");
        builder.append("开始日期:").append(dateCommenced).append("\t");
        builder.append("申请人所在部门:").append(applicantDepartment).append("\t");
        builder.append("证明人姓名:").append(nameOfWitness).append("\t");
        builder.append("申请人专业工作描述:").append(professionalJobDescription).append("\t");
        builder.append("申请人单位地址:").append(applicantUnitAddress).append("\t");
        builder.append("结束日期:").append(deadline).append("\t");
        builder.append("申请人职务/职称:").append(positionProfessionalTitle).append("\t");
        builder.append("证明人联系电话:").append(witnessContactPhoneNumber).append("\t");
        return builder.toString();
    }
}